package com.hm.jiaowuxitong.service;

import com.hm.jiaowuxitong.dao.IClassDao;
import com.hm.jiaowuxitong.dao.ClassDaoImp;

import java.util.List;
import java.util.Map;

public class ClassServiceImp implements IClassService {

    IClassDao dao = new ClassDaoImp();

    @Override
    public int addClass(Map<String, Object> oMap) {
        return dao.insertClass(oMap);
    }

    @Override
    public List<Map<String, Object>> getClasses() {
        return dao.selectClasses();
    }


    @Override
    public List<Map<String, Object>> getCLasses() {
        return dao.selectClasses();
    }
}
